package org.opensource.yabts.client;

import org.opensource.yabts.server.bean.Project;
import org.springframework.security.access.prepost.PreAuthorize;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("rpc/greet")
public interface GreetingService extends RemoteService {

//	@PreAuthorize("hasAuthority('ROLE_ADMIN')")
	@PreAuthorize("hasPermission(returnObject, 'READ')")
	Project getProject(Long id) throws IllegalArgumentException;
}
